document.addEventListener('touchstart', function() {}, false);
var mess1 = document.getElementById("mess1");
var db = openDatabase('messageChat', '1.0', 'messageChatOfHistory DB', 4 * 1024 * 1024);
db.transaction(function(tx) {
	tx.executeSql('SELECT * FROM CurentOtherMessage ', [], function(tx, results) {
		var len = results.rows.length;
		if (len > 0) {
			mess1.innerText = len;
			mess1.style.display = 'block';
		}else{
			mess1.style.display = "none";
		}
	}, null);
});

function opengrouplist() {
	mess1.style.display = 'none';
	mui.openWindow({
		id: 'quanziMessage',
		url: 'quanziMessage.html',
		waiting: {
			autoShow: false,
		}
	});
}

function clickopen() {
	mui.openWindow({
		id: 'systemMess',
		url: 'systemMess.html',
		waiting: {
			autoShow: false,
		}
	});
}